/**
 * Created by ZYMS on 2018/5/10.
 */
window.onload=function(){
    var play=document.getElementById('playbtn');
    var bgm = document.getElementById('bgMusic');
    play.onclick = function () {
        console.log(bgm.paused);
        if (bgm.paused) {
            bgm.play();
            play.value="暂停";
        }else{
            bgm.pause();
            play.value="播放";
        }
    }
}


